num1 = 10
num2 = 20
# 算术运算
print(f'{num1 + num2}')
print(f'{num1 - num2}')
print(f'{num1 * num2}')
print(f'{num1 / num2}')
print(f'{num1 // num2}')
print(f'{num1 % num2}')

# %求余数 通常用来判断 奇偶数

#1-100求和
i = 0
result = 0
while i <=100:
    result += i
    i += 1
print(result)

# 1-100偶数求和
i = 0
result = 0
while i <=100:
    if i % 2 == 0:
        result += i
    i += 1
print(result)




